package com.tool;

import android.location.Location;


public class CurrentPoint {
	
	private Location location;
	
	public CurrentPoint(Location location) {
		this.location=location;
	}
	private double pointx;
	private double pointy;
	public double getPointx() {
		if(location==null)
		{
			Double lat = 30.5896565246582;
			pointx=lat;
		}
		else {
			pointx=location.getLatitude();
		}
		return pointx;
	}
	public double getPointy() {
		if(location==null)
		{
			Double lng = 114.2760687255859;
			pointy=lng;
		}
		else {
			pointy=location.getLongitude();
		}
		return pointy;
	}
}
